← Back to issue list

Generated 'git describe' based version strings can exceed 32 character version limit

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1849935
Type
issue
State
open
Author
~ec0
Labels
Created
2019-10-26 08:35:41.920076+00:00
Updated
2019-12-19 12:37:37.557874+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

When building a snap using the 'version: git' snapcraft.yaml parameter, it is possible for snapcraft to generate a version string longer than its own 32 character limit. For example, a snap built from a forked branch of the upstream 'develop-2019-10-23' branch, with some dirty commits, produces the below error: error: cannot validate snap "matrix-appservice-irc": invalid snap version "develop-2019-10-23+git10.fb1f3b2-dirty": cannot be longer than 32 characters (got: 38) The snap in question can be cloned from https://github.com/devec0/matrix-appservice-irc/tree/add-snapcraft and built if you have trouble reproducing this behaviour.

Evaluation history

No evaluation history available.